package com.cloud.elm.feign;

import com.cloud.elm.feign.callback.BusinessFeignClientCallback;
import com.cloud.elm.po.Business;
import com.cloud.elm.utils.response.ResultBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "business-server", fallback = BusinessFeignClientCallback.class)
public interface BusinessFeignClient {

    @GetMapping("/elm/BusinessController/getBusinessById/{businessId}")
    ResultBody<Business> getBusinessById(@PathVariable("businessId") String businessId);
}
